import './index.less'

const PDFView = ({ detail }) => {
  const { url } = detail

  return (
    <div className='pdfView' style={{ width: '100vw', height: '100%' }}>
      <iframe
        title='pdfView'
        width='100%'
        height='100%'
        frameBorder='0'
        scrolling='yes'
        marginWidth='0'
        marginHeight='0'
        src={`/pdfjs-web/web/viewer.html?file=${url}`}
      />
    </div>
  )
}

export default PDFView
